<template>
	<view class="privicy">
		<comHead :title="tit" :isLeft="true" :isRight="false"></comHead>
		<view class="text" v-html="userContent"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tit: "",
				userContent:""
			}
		},
		onLoad(options) {
			this.tit = options.tit
			this.getSystemLevel()
		},
		methods: {
			async getSystemLevel() {
				const res = await this.$myRequest({
					url: 'api/system/getUserContent',
					data: {}
				})
				if (res.code == 1) {
					console.log(res)
					if(this.tit=="隐私协议"){
						this.userContent = res.data.privacy_content
					}else{
						this.userContent = res.data.user_content
					}
				}
			},
		}
	}
</script>
<style lang="less" scoped>
	.privicy {
		// .text{
		// 	padding: 30rpx;
		// 	box-sizing: border-box;
		// 	color: #fff;
		// 	font-size: 28rpx;
		// 	line-height: 1.6;
		// }
		min-height: 100vh;


		.text {
			padding: 0 30rpx 30rpx;
			box-sizing: border-box;
			color: #999;
			font-size: 28rpx;
			line-height: 42rpx;

			.tit {
				margin-bottom: 36rpx;
			}
		}
	}
</style>